package com.ez.supervise.dao.impl;

import java.util.List;

import com.ez.supervise.core.Page;
import com.ez.supervise.dao.QueryDao;
import com.ez.supervise.dao.base.BaseDaoImpl;

public class QueryDaoImpl extends BaseDaoImpl implements QueryDao {

    public int queryCheckResultByCount(Page page) {
	return (Integer) getSqlMapClientTemplate().queryForObject("biz.queryCheckResultByCount", page.getConditions());
    }

    public List queryCheckResultByPage(Page page) {
	return getSqlMapClientTemplate().queryForList("biz.queryCheckResultByPage", page.getConditions());
    }

    public int queryCheckProgressByCount(Page page) {
	return (Integer) getSqlMapClientTemplate().queryForObject("biz.queryCheckProgressByCount", page.getConditions());
    }

    public List queryCheckProgressByPage(Page page) {
	return getSqlMapClientTemplate().queryForList("biz.queryCheckProgressByPage", page.getConditions());
	 
    }

    public int queryOrgCheckSelfByCount(Page page) {
	return (Integer) getSqlMapClientTemplate().queryForObject("biz.queryOrgCheckSelfByCount", page.getConditions());
    }

    public List queryOrgCheckSelfByPage(Page page) {
	return getSqlMapClientTemplate().queryForList("biz.queryOrgCheckSelfByPage", page.getConditions());
    }

}
